package com.sunqianhu.design_patterns_23.behavioral.responsibility;

public class Client {
    public static void main(String[] args) {
        LeaveRequest leaveRequest = new LeaveRequest("小明", 5);
        Approver ceo = new Ceo();
        Approver manager = new Manager();
        Approver teamLeader = new TeamLeader();
        teamLeader.setSuccessor(manager);
        manager.setSuccessor(ceo);
        teamLeader.processRequest(leaveRequest);
    }
}
